import { RaceGroupStageTypeEnum, PlayerStatusEnum, RaceEventTypeEnum } from "../config/enum";


/**
 * 赛程管理 - 小组赛形式
 * @returns 返回模拟数据
 */
export const courseGroupList = [
    {
        name: "单循环",
        id: RaceGroupStageTypeEnum.SIGNLE_CYCLE,
    },
    {
        name: "双循环",
        id: RaceGroupStageTypeEnum.DOUBLE_CYCLE,
    },
];

/**
 * 比赛数据 - 球员状态
 * @returns 返回模拟数据
 */

export const PlayerStatusEnumText: { [key in PlayerStatusEnum]: string } = {
    [PlayerStatusEnum.STARTER]: '首发',
    [PlayerStatusEnum.SUBSTITUTE]: '替补',
    [PlayerStatusEnum.SUSPEND]: '停赛'
}


export const RaceEventTypeInfo: { [key in RaceEventTypeEnum]: {
    text: string,
    icon: string
} } = {
    [RaceEventTypeEnum.GOAL]: {
        text: '进球',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/zuqiu.png'
    },
    [RaceEventTypeEnum.PENALTY]: {
        text: '点球',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/penalty.png'
    },
    [RaceEventTypeEnum.OWN_GOAL]: {
        text: '乌龙球',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/duankai.png'
    },
    [RaceEventTypeEnum.YELLOW_CARD]: {
        text: '黄牌',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/yellowpai.png'
    },
    [RaceEventTypeEnum.RED_CARD]: {
        text: '红牌',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/redpai.png'
    },
    [RaceEventTypeEnum.PLAYER_UP]: {
        text: '球员换上',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/up.png'
    },
    [RaceEventTypeEnum.PLAYER_DOWN]: {
        text: '球员换下',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/down.png'
    },
    [RaceEventTypeEnum.PENALTY_KICK]: {
        text: '球点球决胜',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/kick.png'
    },
    [RaceEventTypeEnum.PENALTY_GOAL]: {
        text: '点球罚进',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/fajin.png'
    },
    [RaceEventTypeEnum.PENALTY_MISSED]: {
        text: '点球罚失',
        icon: 'http://110.41.130.24/prod-api/system/wx/icon/fashi.png'
    },
}